import { request } from '@/utils/http'


export const getHotelId = (id ?: any,data?:any) => {
	return request.get(`/Hotel/${id}`, data, {
		showLoading: false
	})
}

export const getHotelDetail = (id ?: any,data?:any) => {
	return request.get(`/Hotel/detail/${id}`,data,{
		showLoading: false
	})
}
export const getHotelRooms = (id ?: any,data?:any) => {
	return request.get(`/Hotel/rooms-detail/${id}`,data,{
		showLoading: false
	})
}
export const getPreOrder = (id ?: any) => {
	return request.get(`/Order/pre-order/${id}`,'',{
		showLoading: false
	})
}

export const postOrdercreate = (data?:any) => {
	return request.post(`/Order/create-order`,data,{
		showLoading: true
	})
}
export const postOrderSubmit= (data?:any) => {
	return request.post(`/Order/submit-order`,data,{
		showLoading: true
	})
}

export const postSpecialRequests= (data?:any) => {
	return request.get(`/Hotel/special-requests`,data,{
		showLoading: false
	})
}
